// -------------------------------------------------
// BlinKit - BlinKit Library
// -------------------------------------------------
//   File Name: KeyframeStyleRuleCSSStyleDeclaration.h
// Description: KeyframeStyleRuleCSSStyleDeclaration Class
//      Author: Ziming Li
//     Created: 2022-10-02
// -------------------------------------------------
// Copyright (C) 2022 MingYang Software Technology.
// -------------------------------------------------

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef KeyframeStyleRuleCSSStyleDeclaration_h
#define KeyframeStyleRuleCSSStyleDeclaration_h

#include "blinkit/blink/renderer/core/css/property_set_css_style_declaration.h"

namespace blink {

class CSSKeyframeRule;

class KeyframeStyleRuleCSSStyleDeclaration final : public StyleRuleCSSStyleDeclaration {
public:
    static PassRefPtrWillBeRawPtr<KeyframeStyleRuleCSSStyleDeclaration> create(MutableStylePropertySet& propertySet, CSSKeyframeRule* parentRule)
    {
        return adoptRefWillBeNoop(new KeyframeStyleRuleCSSStyleDeclaration(propertySet, parentRule));
    }

private:
    KeyframeStyleRuleCSSStyleDeclaration(MutableStylePropertySet&, CSSKeyframeRule*);

    void didMutate(MutationType) override;
};

} // namespace blink

#endif
